﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
using System.Text;
using Maticsoft.DBUtility;
using Utils;
using System.Collections.Specialized;
using Maticsoft.Model;


public partial class Template_mail_subscribe_team : FBasePage
{
    // Fields
    protected NameValueCollection city = new NameValueCollection();
    protected NameValueCollection mail = new NameValueCollection();
    protected NameValueCollection partner = new NameValueCollection();
    protected NameValueCollection team = new NameValueCollection();
    protected string today = DateTime.Now.ToString("yyyy-MM-dd");

    // Methods
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        int @int = Helper.GetInt(base.Request["mailid"], 0);
        int id = Helper.GetInt(base.Request["teamid"], 0);
        if (@int > 0)
        {
            Mailer model = new Maticsoft.BLL.Mailer().GetModel(@int);
            this.mail = Helper.GetObjectProtery(model);
            if (model.City_id > 0)
            {
                Category category2 = new Maticsoft.BLL.Category().GetModel(model.City_id);
                this.city = Helper.GetObjectProtery(category2);
            }
        }
        if (id > 0)
        {
            Team team2 = new Maticsoft.BLL.Team().GetModel(id);
            this.team = Helper.GetObjectProtery(team2);
            if (team2.Partner_id > 0)
            {
                Partner partner2 = new Maticsoft.BLL.Partner().GetModel(team2.Partner_id);
                this.partner = Helper.GetObjectProtery(partner2);
            }
        }
    }

}